package com.ruoyi.costQuery.service.impl;

import java.util.List;

import com.ruoyi.costQuery.domain.BillVO;
import com.ruoyi.costQuery.domain.MessageVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.costQuery.mapper.HouseCostQueryTMapper;
import com.ruoyi.costQuery.domain.HouseCostT;
import com.ruoyi.costQuery.service.IHouseCostQueryTService;

/**
 * 缴费信息Service业务层处理
 * 
 * @author lijie
 * @date 2023-04-24
 */
@Service
public class HouseCostQueryTServiceImpl implements IHouseCostQueryTService
{
    @Autowired
    private HouseCostQueryTMapper houseCostQueryTMapper;

    /**
     * 查询缴费信息
     * 
     * @param costId 缴费信息主键
     * @return 缴费信息
     */
    @Override
    public HouseCostT selectHouseCostTByCostId(Long costId)
    {
        return houseCostQueryTMapper.selectHouseCostTByCostId(costId);
    }

    @Override
    public HouseCostT selectOrderId(String orderId) {
        return houseCostQueryTMapper.selectOrderId(orderId);
    }

    @Override
    public int insertOrderInfo(HouseCostT houseCostT) {

        return houseCostQueryTMapper.insertOrderInfo(houseCostT);
    }

    @Override
    public MessageVO selectHouseEbillT(MessageVO messageVO) {
        return houseCostQueryTMapper.selectHouseEbillT(messageVO);
    }

    @Override
    public int updateDoorBill(BillVO billVO) {
        return houseCostQueryTMapper.updateDoorBill(billVO);
    }

    @Override
    public BillVO getBillDetailByBillNO(Long costId) {

        return houseCostQueryTMapper.getBillDetailByBillNO(costId);
    }

    @Override
    public int insertBillDetail(MessageVO messageVO) {
        return houseCostQueryTMapper.insertBillDetail(messageVO);
    }

    /**
     * 查询缴费信息列表
     * 
     * @param houseCostT 缴费信息
     * @return 缴费信息
     */
    @Override
    public List<HouseCostT> selectHouseCostTList(HouseCostT houseCostT)
    {
        return houseCostQueryTMapper.selectHouseCostTList(houseCostT);
    }

    @Override
    public HouseCostT selectHouseCostSum(HouseCostT houseCostT)
    {
        return houseCostQueryTMapper.selectHouseCostSum(houseCostT);
    }


    /**
     * 修改缴费信息
     * 
     * @param houseCostT 缴费信息
     * @return 结果
     */
    @Override
    public int updateHouseCostT(HouseCostT houseCostT)
    {
        return houseCostQueryTMapper.updateHouseCostT(houseCostT);
    }

}
